package cn.lovelysia.ymcc.feignclient;

import cn.lovelysia.ymcc.domain.Login;
import cn.lovelysia.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",fallbackFactory = UaaFeignCallBack.class)
public interface IUaaFeignClient {

    /**
     * 手机短信注册
     */
    @RequestMapping(value="/login/phoneRegister",method= RequestMethod.POST)
    public JSONResult phoneRegister(@RequestBody Login login);
}
